﻿using InDepth2Demo.Model;
using System.Data.Linq;

namespace InDepth2Demo.Common
{
    public class LinqDemoDataContext : DataContext
    {
        public Table<Employee> Employees { get; set; }
        public Table<EmployeesAddInfo> EmployeesAddInfos { get; set; }
        public Table<Z_Test> Tests { get; set; }

        static readonly string connstr = "Data Source=172.21.0.12;Initial Catalog=AIS20130703150935;User ID=sa;Password=chunkp@ssw0rd2023;";

        public LinqDemoDataContext() : base(connstr)
        {
        }

        public LinqDemoDataContext(string connectionString)
        : base(connectionString)
        {
        }
    }
}
